package org.singledog.dogmail.common.entity;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class RequestEntity<T extends BaseRequest> {

    private T node;

    public void selectPage(QueryWrapper queryWrapper, Long pageNum, Long pageSize) {
        pageNum = (pageNum - 1) * pageSize;
        queryWrapper.last(" LIMIT " + pageNum + "," + pageSize);
    }
}
